package com.service;

import java.util.ArrayList;
import java.util.List;

public class Manager extends Employee{
    private List<Employee> employees = new ArrayList<>();

    @Override
    public String toString() {

        return String.format("我是%s的%s,我职位是经理!",
                getCompany().getName(),getName());
    }

    public List<Employee> getEmployees() {
        return employees;
    }

    public void setEmployees(List<Employee> employees) {
        this.employees = employees;
    }
}
